﻿using Common.Device.DeviceDb;
using Common.Device.Interfaces;
using Common.Device.Views;
using Common.Tool.Models;
using Common.View.Base;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using System.Windows.Input;
using System.Xml.Linq;

namespace Common.Device.ViewModels
{
    public class DeviceDebugViewModel : BindableBase
    {
        private UseDevice device;
        /// <summary>
        /// 当前设备
        /// </summary>
        public UseDevice Device
        {
            get { return device; }
            set { SetProperty(ref device, value); }
        }
        private List<string> deviceNames = new List<string>(DeviceService.useDevices.Keys);
        /// <summary>
        /// 设备名称集合
        /// </summary>
        public List<string> DeviceNames
        {
            get { return deviceNames; }
            set { SetProperty(ref deviceNames, value); }
        }
        private string deviceName;
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName
        {
            get { return deviceName; }
            set { SetProperty(ref deviceName, value); }
        }

        private ContentControl deviceView;
        /// <summary>
        /// 当前设备界面
        /// </summary>
        public ContentControl DeviceView
        {
            get { return deviceView; }
            set { SetProperty(ref deviceView, value); }
        }
    }
}
